<template>
  <div>
    <div class="mui-numbox" data-numbox-min="1" data-numbox-max="9">
      <button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
      <input id="test" class="mui-input-numbox" type="number" value="1">
      <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
    </div>
  </div>
</template>

<script>
// 导入mui的js文件
import mui from '../../lib/mui-3.7.1/js/mui.min.js';
export default {
  mounted () {
    // 初始化数字选择框
    mui('.mui-numbox').numbox();
  }
}
</script>

<style lang="scss" scoped>
</style>
